import { ModuleWithProviders } from '@angular/core';
import { RouterModule } from '@angular/router';
import {AppUserComponent} from './app-user.component';

export const routing: ModuleWithProviders = RouterModule.forChild([
  { path: 'user', component: AppUserComponent,
    children: [
    { path: '', redirectTo: 'playlists', pathMatch: 'full' },
    { path: 'playlists', component: AppUserComponent },
    { path: 'playlist/:id', component: AppUserComponent,
     // canActivate: [ AuthGuard ], canActivateChild: [ AuthGuard ],
      resolve: {
       // videos: PlaylistVideosResolver,
        //playlist: PlaylistResolver
      }
    }
  ]}
]);